package com.yuan.schedule.subscribe;

import org.apache.log4j.Logger;

import com.yuan.service.subscribe.SubscribeService;

public class SubscribeSchedule {

	private static final Logger logger = Logger
			.getLogger(SubscribeSchedule.class);

	private SubscribeService subscribeService;

	public void send() {
		try {
			subscribeService.sendMail();
		} catch (Exception ex) {
			logger.error("发送邮件失败", ex);
		}
	}

	public SubscribeService getSubscribeService() {
		return subscribeService;
	}

	public void setSubscribeService(SubscribeService subscribeService) {
		this.subscribeService = subscribeService;
	}

}
